package com.eksboot.beancopy;

import org.mapstruct.InheritConfiguration;
import org.mapstruct.InheritInverseConfiguration;

import java.util.Collection;
import java.util.List;

/**
 * MapstructMapper
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2020-08-19 16:16
 */
public interface MapstructMapper<S, T> {

    @InheritConfiguration
    T to(S source);

    @InheritConfiguration
    List<T> to(Collection<S> source);

    @InheritInverseConfiguration
    S from(T source);

    @InheritInverseConfiguration
    List<S> from(Collection<T> source);
}
